﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="StockInfo1.aspx.cs" Inherits="StockInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style7 {
            width: 635px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table border=0 cellpadding=0 cellspacing=0 align="center" class="auto-style7">
        <tr>
	  <td style="height: 26px">
          订单号：<asp:TextBox ID="txtStockID" runat="server"></asp:TextBox>
          <br />
          <br />
          商品编号:
          <asp:TextBox ID="txtMerch" runat="server" Width="117px" OnTextChanged="GoodNo_TextChanged"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMerch"
              ErrorMessage="请输入商品编号!"></asp:RequiredFieldValidator>
          <br />
          <br />
          商品名称：<asp:TextBox ID="txtMerch1" runat="server" Width="117px" OnTextChanged="GoodNo_TextChanged"></asp:TextBox>
          <br />
          <br />
          商品描述：<asp:TextBox ID="txtMerch2" runat="server" Width="117px" OnTextChanged="GoodNo_TextChanged"></asp:TextBox><br />
          <br />
         
          选择供应商:
          <asp:DropDownList ID="ProvideID" runat="server" DataSourceID="SupplierDataSource"
              DataTextField="ProvideID" DataValueField="ProvideID" OnSelectedIndexChanged="ProvideID_SelectedIndexChanged">
          </asp:DropDownList>
          <br />
        
          <br />
          进货价格:
          <asp:TextBox ID="txtPrice" runat="server" Width="96px"  AutoPostBack="True" OnTextChanged="txtPrice_TextChanged">0.0</asp:TextBox>
          元 &nbsp; 
          <br />
          &nbsp;&nbsp;
          <br />
          进货数量:
          <asp:TextBox ID="txtNumber" runat="server" Width="95px"  AutoPostBack="True" OnTextChanged="txtNumber_TextChanged">0</asp:TextBox><br />
          <br />
          进货总价:
          <asp:TextBox ID="txtTotalPrice" runat="server" Width="94px">0.0</asp:TextBox>
          元<br />
          <br />
          进货日期:
          <asp:DropDownList ID="DropDownList1" runat="server" Width="30px">
                </asp:DropDownList>
                年<asp:DropDownList ID="DropDownList2" runat="server" Width="30px">
                </asp:DropDownList>
                月<asp:DropDownList ID="DropDownList3" runat="server" CssClass="auto-style9" Width="30px">
                </asp:DropDownList><br />
          <br />
      </td>
	</tr>
          <tr>
              <td style="height: 24px">
                  <asp:Button
                      ID="Btn_Add" runat="server" OnClick="Btn_Add_Click" Text="进货登记" />&nbsp;<input type=button value="取消" onclick="javascript: location.href = 'BuyInfoAdd.aspx';" /></td>
          </tr>
         
      </table>
       &nbsp;&nbsp;&nbsp;
       <asp:SqlDataSource ID="SupplierDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SupermarketConnectionString %>" SelectCommand="SELECT [ProvideID], [MerchPrice], [MerchNum], [MerchSumP], [StockDate], [StockID], [MerchID], [MerchName], [MerchDescn] FROM [StockInfo]">
       </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>

